Progress bar для изображений
Здравствуйте. Хотелось бы добавить полосу загрузки на загрузку изображений. Есть ли готовые решения?
{if $oTopic->getPreviewImageWebPath()} <a href="{$oTopic->getUrl()}"><img class="topic_preview" src="{$oTopic->getPreviewImageWebPath({cfg name='topic.thumbnail.img_size'})}"></a> {/if}
if (!isPost('submit_topic_publish') and !isPost('submit_topic_save')) { if (!empty($_COOKIE['ls_photoset_target_tmp'])) { $sTargetTmp=$_COOKIE['ls_photoset_target_tmp']; $aPhotos = $this->Topic_getPhotosByTargetTmp($sTargetTmp); foreach($aPhotos as $oPhoto){ $this->Topic_deleteTopicPhoto($oPhoto); } } }
<div class="wrapper-content"> <script type="text/javascript"> jQuery(function($){ $('#avatar-upload').file({ name:'avatar' }).choose(function(e, input) { ls.user.uploadAvatar(null,input); }); }); </script>